# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=libgss
pkgver=1.0.3
pkgrel=0
pkgdesc="An implementation of the Generic Security Service Application Program Interface"
url="https://www.gnu.org/software/gss/"
arch="all"
license="GPL-3.0-or-later"
depends_dev="pkgconfig"
makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://ftp.gnu.org/gnu/gss/gss-$pkgver.tar.gz"
builddir="$srcdir/gss-$pkgver"

prepare() {
	default_prepare

	update_config_sub
	update_config_guess
}

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-nls
	make
}

check() {
	make tests
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="16a43e23d681276a0143ce1731e9a5fa7d4ddb98b4c8027921d2a09e60eeee850960030fa3dfebdd66052e71444ccad1269e645a426e408a97bb020bf7bcb19c  gss-1.0.3.tar.gz"
